import instance from "@/tools/axios";

// 添加线索
const addClue = async (data: any): Promise<ResponseApiDto> => {
    return instance.post("/SysClues/Add", data);
};
// 删除线索
const deleteClue = async (data: any): Promise<ResponseApiDto> => {
    return instance.post("/SysClues/Delete", data);
};
// 修改线索
const updateClue = async (data: any): Promise<ResponseApiDto> => {
    return instance.post("/SysClues/Update", data);
};
// 查询线索的编号
const getCluesid = async (params: any): Promise<ResponseApiDto> => {
    return instance.get("/SysClues/GetCluesid", params);
};
// 分页线索
const paginationClues = async (params: any): Promise<ResponseApiDto> => {
    return instance.get("/SysClues/Pagination", params);
};
// 转换线下客户
const switchOfflineCustomers = async (data: any): Promise<ResponseApiDto> => {
    return instance.post("/SysClues/SwitchOfflineCustomers", data);
};
// 转换线上客户
const switchOnlineCustomers = async (data: any): Promise<ResponseApiDto> => {
    return instance.post("/SysClues/SwitchOnlineCustomers", data);
};
export { 
    addClue,
    paginationClues,
    deleteClue,
    updateClue,
    getCluesid,
    switchOfflineCustomers,
    switchOnlineCustomers
 };